package com.xlink.dto;

import com.reeham.component.ddd.annotation.Model;
import org.moon.base.domain.BaseDomain;

/**
 * Created by jk on 2015/12/22.
 */
@Model  //使用`@Model`注解将该对象标示为领域对象
public class Datapoint extends BaseDomain {   // 需继承`BaseDomain`(Moon BaseDomain提供了领域模型的基础通用的属性，如`id`,`delete_flag`等;同时也提供了领域模型的增删查改行为)
    private static final long serialVersionUID = 1L;
    //* 添加领域模型的其他ion;行为(非必须)
    private Long datapointId;
    private Object datapointValue;
    private long deviceId;
    private long sensorId;
    private String API_Key;
    private Long displayTime;

    /*
    public Datapoint(Long datapointId,Object datapointValue,Long sensorId){
        this.datapointId=datapointId;
        this.datapointValue=datapointValue;
        this.sensorId=sensorId;
    }*/
    public String getAPI_Key() {return API_Key;}

    public void setAPI_Key(String API_Key){this.API_Key=API_Key;}

    public long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(long deviceId) {
        this.deviceId = deviceId;
    }

    public long getSensorId() {
        return sensorId;
    }

    public void setSensorId(long sensorId) {
        this.sensorId = sensorId;
    }

    public Long getDatapointId() {
        return datapointId;
    }

    public void setDatapointId(Long datapointId) {
        this.datapointId = datapointId;
    }

    public Object getDatapointValue() {
        return datapointValue;
    }

    public void setDatapointValue(Object datapointValue) {
        this.datapointValue = datapointValue;
    }

    public void setDisplayTime(Long displayTime){
        this.displayTime=displayTime;
    }
    public Long getDisplayTime(){
        return displayTime;
    }
}
